package it.polito.connectedcar.util;

public class LatLng {

	private double latitude;
	private double longitude;
	private long timePosition;
	
	public LatLng(double latitude,double longitude) {
		this.latitude=latitude;
		this.longitude=longitude;
		this.timePosition= System.currentTimeMillis();
	}
	public double getlatitude()
	{
		return this.latitude;
	}
	public double getLongitude()
	{
		return this.longitude;
	}
	public long getTimePosition()
	{
		return this.timePosition;
	}
	public void setTimestamp(long timestamp)
	{
		this.timePosition = timestamp;
	}
	public void update(double latitude,double longitude)
	{
		this.latitude=latitude;
		this.longitude= longitude;
		this.timePosition= System.currentTimeMillis();
	}
}
